#include"Texture.h"
//#include"mgepch.h"
#include"myMiniEngine/Renderer/Renderer.h"
#include"myMiniEngine/Platform/OpenGL/OpenGLTexture.h"

namespace myMiniEngine {

	Ref<Texture2D> Texture2D::Create(const std::string& path) {
		switch (Renderer::GetAPI())
		{
		case RendererAPI::API::None:    MGE_CORE_ASSERT(false, "RendererAPI::None is currently not supported!"); return nullptr;
		case RendererAPI::API::OpenGL:  return std::make_shared<OpenGLTexture2D>(path);
		}

		MGE_CORE_ASSERT(false, "Unknown RendererAPI!");
		return nullptr;
	}


}